import request from '@/plugin/axios'
import util from '@/libs/util.js'



export default {
	getTerminalStat(data = {}) {
		return request({
			url: 'dashboard/info',
			headers: {},
			method: 'post',
			data,
		});
	},
	// 获取4个卡片
	getRealTimeStats(data = {}) {
		return request({
			url: 'dashboard/realTimeStats',
			headers: {},
			method: 'post',
			data,
		});
	},

		// 折线图数据
		getLineChart(data = {}) {
			return request({
				url: 'dashboard/lineChart',
				headers: {},
				method: 'post',
				data,
			});
		},
};